package com.javaAdmin.enums;

/**
 * @author Administrator
 */
public enum ResultCodeEnum {

    /**
     * 响应成功状态码
     */
    SUCCESS(1001, "success"),

    /**
     * 响应失败状态码
     */
    FAIL(1002, "系统错误");

    private Integer code;

    private String msg;

    ResultCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
